package com.spg.apidoc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.spg.apidoc.resource.PageReocrd;
import com.spg.apidoc.resource.mark.input.StatPara;
import com.spg.apidoc.resource.mark.output.MarkRanking;
import com.spg.apidoc.resource.mark.output.MarkRecordPage;
import com.spg.apidoc.resource.mark.output.MarkStat;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;

/**
 * 
 * @author ligy
 *
 */
@Api(value = "积分", description = "统一积分管理接口")
@Controller
@RequestMapping("/mark")
public class MarkCtroller {

	@RequestMapping(value = "getRanking", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
	@ApiOperation(value = "积分排名接口", notes = "积分排名接口", response = MarkRanking.class, httpMethod = "POST")
	public MarkRanking getRanking() {
		return null;
	}

	@RequestMapping(value = "getMarkStat", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
	@ApiOperation(value = "积分统计接口", notes = "积分统计接口(按天+来源统计消耗/累计量)", response = MarkStat.class, httpMethod = "POST")
	public MarkStat getMarkStat(StatPara para) {
		return null;
	}

	@RequestMapping(value = "getMarkRecord", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
	@ApiOperation(value = "积分纪录统计接口", notes = "根据用户id查询用户积分记录", response = MarkRecordPage.class, httpMethod = "POST")
	public MarkRecordPage getMarkRecord(@RequestBody PageReocrd para,
			@ApiParam(value = "用户id") @RequestParam("uid") String uid) {
		return null;
	}
}